Compile WiFi dongle driver

Please could someone help me compile and load a driver for a WiFi dongle. It’s a TP-Link AC600 and I use Leap 15.1.

I am confused by numerous things. The first being that although TP-Link provide instructions for Ubuntu, Mint and Kali they don’t provide the source code or a link to the code!. The writing on the dongle says “Archer T2U”. No reference to v1,2,3 or AC600 but I assume it’s v3 because I bought it from a high street shop (Currys/PC-World). lsusb simply gives Bus 001 Device 005: ID 2357:011f

After doing a bit of DuckDuckGo’ing it seems to be a MediaTek MT7610U. They provide source code and the readme says it’s for 2.4 and 2.6 series Linux kernel. The v3 instructions on the TP-Link website says it’s for 4.13.0-36 so I’m not sure if they are referring to different code. The driver has been compiled already but only for Tumbleweed… I’m using Leap 15.1 (4.12.4-lp151.28.36). I initially ‘updated’ to Tumbleweed but couldn’t get it to load and gave up easily. I would prefer to use Leap so I’m back to that.

Some links I’ve found somewhat useful…
[https://www.tp-link.com/us/support/download/archer-t2u/v3/
https://www.mediatek.com/products/broadbandWifi/mt7610u](https://www.tp-link.com/us/support/download/archer-t2u/v3/https://www.mediatek.com/products/broadbandWifi/mt7610uhttps://unix.stackexchange.com/questions/239643/tplink-ac600-driver-install(This)
https://unix.stackexchange.com/questions/239643/tplink-ac600-driver-install
(This seems to give working instructions for Ubuntu 14.04)

Also, if I get this driver working and then OpenSuse updates the kernel do I have to recompile and load the driver? Thank you!

Please post:

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 004: ID 045e:0823 Microsoft Corp. 
Bus 001 Device 003: ID 0781:5406 SanDisk Corp. Cruzer Micro U3
Bus 001 Device 006: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 005: ID 045e:0768 Microsoft Corp. Sidewinder X4
Bus 001 Device 002: ID 2357:011f  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

2357:011f is the Wifi dongle.

Thanks

Hi,

What does

dmesg

and

lsusb -v

show when you plug that wireless usb.

dmesg gives out

  837.684176] usb 1-1: new high-speed USB device number 8 using xhci_hcd
  837.832549] usb 1-1: New USB device found, idVendor=2357, idProduct=011f
  837.832554] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  837.832557] usb 1-1: Product: 802.11ac WLAN Adapter 
  837.832560] usb 1-1: Manufacturer: Realtek 
  837.832562] usb 1-1: SerialNumber: 00e04c000001



The relevant part of lsusb -v gives

Bus 001 Device 002: ID 2357:011f  Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x2357 
  idProduct          0x011f 
  bcdDevice            2.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           60
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           6
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x09  EP 9 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0




Hi,

I have usb wireless adapter like yours. mine is

Bus 001 Device 007: ID 2357:0120

dmesg is

[69478.140218] usb 1-2: new high-speed USB device number 6 using xhci_hcd
[69478.163622] usb 1-2: New USB device found, idVendor=2357, idProduct=0120, bcdDevice= 2.00
[69478.163626] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[69478.163628] usb 1-2: Product: 802.11ac WLAN Adapter 
[69478.163630] usb 1-2: Manufacturer: Realtek 
[69478.163632] usb 1-2: SerialNumber: 00e04c000001

I did manage to use it by compiling the drivers from

https://github.com/aircrack-ng/rtl8812au

I’m not surprised because lwfinger is involved in that project, jfyi lwfinger hangs out in this forum from time to time.

Any ways i just cloned that repo and compile.

First I’d go in /tmp

cd /tmp

Then I cloned the repo

git clone https://github.com/aircrack-ng/rtl8812au.git

become root.

su -
cd /tmp/rtl8812au
make && make install

You need git and the compiler package patterns-devel-base-devel_basis **.
**

zypper in git patterns-devel-base-devel_basis

It works on whatever kernel 15.1 has now, and I also have the 5.5.2-2.g994cf1f-default from kernel-stable repo.
and yes you will need to compile everytime you have a kernel update, or ask one of the regulars here if they can package that thing.
I forgot to mention that I have the kernel-firmware installed as well, there was a version of that package was not able to use the wireless driver but I think it was fixed now.

Device ID 2357:011f
This seems to be a RTL8814au
The RTL8812au driver from github can be compiled with support for RTL8814au

There are RTL8812au packages in the Packman repository. I would try that first because it will be kept in step with the Leap kernels. If you do not already have P=ackman installed:


sudo  zypper ar -f  http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_15.1/  15.1-packman.gwdg

sudo  zypper in  rtl8812au-kmp-default  rtl8812au

sudo systemctl reboot

P.S. There is an openSUSE wireless sub-forum.

This does not work, the source is from:

See here, no 2357:011f

This should work:

I did tried/install all the rtl88* packages from the suse/packman repo, I even did a fresh install of 15.1 but none worked, so I resorted to compiling the driver.

Hi
Not sure why you just don’t create a bug report and get the id’s added and fix once and for all for rtl8xxxu?

openSUSE:Submitting bug reports - openSUSE

I have added some IDs to my rtl8812 package, see if it is working.
But OBS is slow today.

So I will post the URL tomorrow.

It depends on your Kernel, which one you have to use:
kernel without any Updates:
https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUSE_Leap_15.1/x86_64/rtl8812AU_8821AU-kmp-default-20200210_k4.12.14_lp151.27-lp151.3.1.x86_64.rpm

last updated Kernel:
https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUSE_Leap_15.1_Update/x86_64/rtl8812AU_8821AU-kmp-default-20200210_k4.12.14_lp151.28.36-lp151.3.1.x86_64.rpm

I tried this but no joy.

I also tried this but I couldn’t get it to compile. I’ve copy and pasted my way through LFS a few times but really, I don’t know why it wouldn’t work.

Thank you for your replies though!

This, however, worked a treat. I have the last updated kernel and the network popped up immediately.

Thank you!!

Come the day when the Leap kernel updates how would I go about installing the driver again? Hopefully I’ll be able to run a cat5 cable through the walls of my next home easily so I can go back to ethernet!

So you can enable my Repo and if kernel gets updated, you get an updated rpm short time later automatically:
as root:

zypper ar -f https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUSE_Leap_15.1_Update/ Sauerland-Hardware-Update

I am running into an issue when located in /rtl8812au running this command:

sudo make dkms_install
mkdir -p /usr/src/8812au-5.6.4.2_35491.20191025
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025

Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
                 /usr/src/8812au-5.6.4.2_35491.20191025

DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=5.3.18-59.19-default KSRC=/lib/modules/5.3.18-59.19-default/build............(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.3.18-59.19-default (x86_64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
make: *** [Makefile:2304: dkms_install] Error 10

This is my

lsusb
Bus 001 Device 009: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]

Two things:

  • Hanging your problem at the end of a thread that has dies long ago is not a good idea when you want the problem exposed to potential helpers.
  • This is a 15.1 thread, you really should upgrade your system to at least 15.2, better 15.3 and check there if things are still problematic on a supported version of openSUSE.

Thanks for the advice.
I am actually using 15.3 and I started my own thread.
I imagined getting more exposure by commenting on an already discussed subject.
Many thanks anyway.